package com.yt.sys.models.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.io.Serializable;

/**
 * 权限信息VO
 *
 * @author chen
 * @Date 2025-09-03 14:25:42
 */
@Data
public class SysPermissionVO implements Serializable {
    @ApiModelProperty(value = "权限ID")
    private Long id;
    @ApiModelProperty(value = "数据版本号（乐观锁控制）")
    private Integer revision;
    @ApiModelProperty(value = "权限名称（如：工单管理-查看）")
    private String permissionName;
    @ApiModelProperty(value = "权限编码（如：WORK_ORDER_VIEW）")
    private String permissionCode;
    @ApiModelProperty(value = "权限类型：1-菜单，2-按钮，3-接口")
    private Integer type;
    @ApiModelProperty(value = "权限对应资源路径（如接口URL）")
    private String url;
    @ApiModelProperty(value = "权限状态：0-禁用，1-启用")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
